const router = require('koa-router')()
const shopRouter = require('./shop')
const studentModel = require('../../model/student')

router.get('/', async (ctx, next) => {
    ctx.body = '用户列表'
    studentModel.find({},(err, docs) => {
        if(err) {
            console.log(err)
            return
        }
        console.log(docs)
    })
})

router.use('/shop', shopRouter)

module.exports = router.routes()
